|
|
|
|
|
|
|
The Add methods first parameter is the Index property of this particular item. You should probably not set this one because you want to use the Key value instead. The Key value is passed in as the second parameter. The third parameter is the text you want to add to the ComboItem object. This is whats displayed in the list box next to the image. The fourth parameter is the Key value of the image in the ImageList you want to assign to this ComboItem object. The fifth parameter is the Key value of another image that you might want to use when an item is selected in the ImageCombo control. The last parameter is the number of indents you want to use. In this particular code, a value of 3 is passed. Each indentation level is approximately 10 pixels. Therefore, each ComboItem object is indented about 30 pixels to the right of the top-level item. |
|
|
|
|
|
|
|
|
You can use many different controls to spruce up your user interface. These controls are not part of the built-in standard Visual Basic controls; you will add them through the Components dialog. They are very easy to use, and with just a little code, you can manipulate them to perform the way you want them to. |
|
|
|
|
|
|
|
|
1. Which control would you use to store a repository of images? |
|
|
|
|
|
|
|
|
2. Which control lets you display status messages to the user? |
|
|
|
|
|
|
|
|
3. Which control gives you a hierarchical view of data using pictures and text? |
|
|
|
|
|
|
|
|
1. Create an MDI form and place a toolbar and a status bar on the form. |
|
|
|
|
|
|
|
|
2 Have your MDI form call another form. Build a toolbar at runtime on this form. |
|
|
|
|
|